﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Newsell
{
    public partial class sellMain : System.Web.UI.MasterPage
    {
        public string usnick;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["usNick"] != null) { usnick = Session["usNick"].ToString(); }
            else { usnick = ""; }

            //if (Session["sessionKey"] == null || Session["usNick"] == null)
            //{
                
            //    string path = Page.ResolveUrl("http://container.api.taobao.com/container?appkey=" + System.Configuration.ConfigurationManager.AppSettings["AppKey"].ToString());
            //    jsargs.AlertAndRedirect("操作超时，请重新登录！", path, this.Page);
            //    string message = "操作超时，请重新登录！";
            //    this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "alertMsg", "<script language=javascript>alert('{" + message + "}')");
            //    Server.Transfer(path);
            //    //string js = "<script language=javascript>alert('{0}');window.location.replace('{1}')</script>";
            //    //this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "AlertAndRedirect", string.Format(js, message, path));
            //    return;
            //}
        }
    }
}